-
Notifications
You must be signed in to change notification settings - Fork 136
(proof-systems) Native Prover with Napi - Proof
#3368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…-conversion Napi conversions of proof-related types
(Native Prover) Oracles
(proof-systems) Native Prover with Napi - POC - Verifier Index
Shigoto-dev19
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm! Just left small comments / questions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More changes to come from the child PR #3381.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More changes to come from the child PR #3381.
| self.sorted = s | ||
| } | ||
|
|
||
| #[napi(setter, js_name="set_aggreg")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #[napi(setter, js_name="set_aggreg")] | |
| #[napi(setter, js_name = "set_aggreg")] |
Just for consistency, sometimes we do leave white spaces like in here and sometimes not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, I will have to create a big PR to native/napi to pass the lint checks
| } | ||
|
|
||
| #[napi(js_name = [<"caml_" $name:snake "_srs_create">])] | ||
| pub fn [<caml_ $name:snake _srs_create>](depth: i32) -> External<[<Napi $name:camel Srs>]> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did using External here cause any errors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also see that you used to_bytes_external but isn't it possible to work around that by consistently using External<[<Napi $name:camel Srs>]> 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine to use externals as inputs but the first time the SRS is created I needed to pass the whole thing. Will give it a try again once more changes are in, but that was the case back then at least.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see! Thanks for the clarification :)
(`proof-systems`) Native Prover with Napi - Verifier Index
o1js side: o1-labs/o1js#2632
mina side: MinaProtocol/mina#18109
Closes o1-labs/o1js#2493 and o1-labs/o1js#2487